// common/http.api.js
import * as chat from './modules/chat.js';
import * as friends from './modules/friends.js';
import * as friendsBlack from './modules/friendsBlack.js';
import * as friendsGroup from './modules/friendsGroup.js';
import * as groups from './modules/groups.js';
import * as user from './modules/user.js';
import * as unload from './modules/unload.js';
import * as common from './modules/common.js';
import * as favorites from './modules/favorites.js';
const http = uni.$u.http;

const api = {
	chat,
	friends,
	friendsBlack,
	friendsGroup,
	groups,
	user,
	unload,
	common,
	favorites
}
uni.$api = api
// api 接口管理
const install = (Vue, vm) => {
	Vue.prototype.$api = api;
}
export default {
	install
}
